{include file="../../../application/admin/view/public/head" /}
<div class="page-container p10">
    <form class="layui-form layui-form-pane" method="post" action="">

                    <div class="layui-form-item">
                        <label class="layui-form-label">状态：</label>
                        <div class="layui-input-inline">
                            <input name="status" type="radio" id="rad-1" value="0" title="禁用" {if condition="$info['status'] neq 1"}checked {/if}>
                            <input name="status" type="radio" id="rad-2" value="1" title="启用" {if condition="$info['status'] eq 1"}checked {/if}>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">名称：</label>
                        <div class="layui-input-inline w500">
                            <input type="text" class="layui-input" value="{$info.name}" placeholder="任务名称，尽量不要重复" id="name" name="name">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">描述：</label>
                        <div class="layui-input-inline w500">
                            <input type="text" class="layui-input" value="{$info.describe}" placeholder="描述信息" id="describe" name="describe">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">访问链接：</label>
                        <div class="layui-input-inline w500">
                            <input type="text" class="layui-input" value="{$info.url}" placeholder="访问的链接或接口地址" id="url" name="url">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">间隔：</label>
                        <div class="layui-input-inline w500">
                            <input type="text" class="layui-input" value="{$info.interval}" placeholder="执行时间间隔" id="interval" name="interval">
                        </div>
                        <div class="layui-form-mid layui-word-aux">单位小时，执行触发任务的时间间隔</div>
                    </div>
        

        <div class="layui-form-item center">
                <button type="submit" class="layui-btn" lay-submit="" lay-filter="formSubmit" data-child="true">保 存</button>
                <button class="layui-btn layui-btn-warm" type="reset">还 原</button>
            </div>
        </div>
    </form>

</div>
{include file="../../../application/admin/view/public/foot" /}
<script type="text/javascript">

    layui.use(['form', 'layer'], function () {
        var form = layui.form
                , layer = layui.layer
                , $ = layui.jquery;

        form.verify({
            from: function (value) {
                if (value == "") {
                    return "请输入编码";
                }
            },
            show: function (value) {
                if (value == "") {
                    return "请输入名称";
                }
            }
        });

    });
</script>

</body>
</html>